package com.dy.project.domain;

import java.util.List;

/**
 * 訂單新增模板類
 */
public class CommodityOrderAddTemplate {
    /** 囚犯編號 */
    private String dtStaffNo;
    /** 預訂的商品集合 */
    private List<InnerCommodityItem> commodities;

    public String getDtStaffNo() {
        return dtStaffNo;
    }

    public void setDtStaffNo(String dtStaffNo) {
        this.dtStaffNo = dtStaffNo;
    }

    public List<InnerCommodityItem> getCommodities() {
        return commodities;
    }

    public void setCommodities(List<InnerCommodityItem> commodities) {
        this.commodities = commodities;
    }

    @Override
    public String toString() {
        return "CommodityOrderAddTemplate{" +
                "dtStaffNo='" + dtStaffNo + '\'' +
                ", commodities=" + commodities +
                '}';
    }

    /**
     * 靜態内部訂單子項輔助類
     */
    public static class InnerCommodityItem{
        /** 商品id */
        private Long acId;
        /** 預訂數量 */
        private Integer orderCount;

        public Long getAcId() {
            return acId;
        }

        public void setAcId(Long acId) {
            this.acId = acId;
        }

        public Integer getOrderCount() {
            return orderCount;
        }

        public void setOrderCount(Integer orderCount) {
            this.orderCount = orderCount;
        }

        @Override
        public String toString() {
            return "InnerCommodityItem{" +
                    "acId=" + acId +
                    ", orderCount=" + orderCount +
                    '}';
        }
    }
}
